#ifndef CHARGEMENT_H_INCLUDED
#define CHARGEMENT_H_INCLUDED

typedef struct { float ix;
                 float x ;
                 float y ;
                 int pos;
                 int i;
                 int j;
                 int jump  ;
                 int pos_jump;
                 BITMAP *img_right[3];
                 BITMAP *img_left[3];
                 BITMAP *img_attack_r ;
                 BITMAP *img_attack_l ;
                 BITMAP *jumpl;
                 BITMAP *jumpr;
                 BITMAP *flecher;
                 BITMAP *flechel;
                 BITMAP *sans_flechel;
                 BITMAP *sans_flecher;
                }perso ;

typedef struct {int en_vie ;
                float x ;
                float y ;
                float ix ;
                int pos;
                int i;
                int j;
                int vie;
                BITMAP *img_right[3];
                BITMAP *img_left[3];
                }ennem  ;


typedef struct {int en_vie ;
                 float x ;
                 float y ;
                 BITMAP *img_bonus;
                }bon ;

typedef struct {int en_vie ;
                 float x ;
                 float y ;
                 float xx;
                 float xxx;
                 float dis;
                 BITMAP *img_cart;
                 int carr;
                 int te ;
                 int boad ;
                }cartouche ;




 typedef struct {
                 int pourcentage ;
                 int nobmre_de_vie ;
                 BITMAP *img_vie[11];
                 BITMAP *img_puiss[5];
                 int nombre_de_puissance ;
                }vie ;

 typedef struct {
                 float bh ;
                 float by ;
                 BITMAP *background;
                 BITMAP *backgroundcol;
                 BITMAP *back_ground;
                }background   ;
 typedef struct {
                 float x;
                 float y ;
                 float p ;
                 float py;
                 int dem ;
                 int en_vie ;
                 int temps ;
                 int posf;
                 int pos;
                 BITMAP *img_f[7];
                 BITMAP *img_fl[7];
                 }fleche ;


void chargement_image ( perso *p , ennem *e , bon *b ,cartouche *c ,vie *v , background *bg ,fleche *f );
void initialisation ( perso *p , ennem *e , bon *b ,cartouche *c ,vie *v ,background *bg ,fleche *f) ;

#endif // CHARGEMENT_H_INCLUDED

